import store from  '@/store'

export default {
  methods: {
    checkPoint(flag) {
      const {userInfo} = store.state.test

      if(userInfo.roles && userInfo.roles.points && userInfo.roles.points.length) {
        return userInfo.roles.points.some(item => item === flag)
      }

      return false
    }
  }
}
